package com.tianxinweb.entity;


import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * Created by cboy on 2018/3/12.
 */
public class EditPwdVo {

    @NotNull
    @Length(min = 32,max = 32)
    private String oldPwd;
    @NotNull
    @Length(min = 32,max = 32)
    private String newPwd;
    @NotNull
    @Length(min = 32,max = 32)
    private String confirmPwd;

    public String getOldPwd() {
        return oldPwd;
    }

    public void setOldPwd(String oldPwd) {
        this.oldPwd = oldPwd;
    }

    public String getNewPwd() {
        return newPwd;
    }

    public void setNewPwd(String newPwd) {
        this.newPwd = newPwd;
    }

    public String getConfirmPwd() {
        return confirmPwd;
    }

    public void setConfirmPwd(String confirmPwd) {
        this.confirmPwd = confirmPwd;
    }

    public boolean valid(){
        boolean b = false;
        if(newPwd.equals(confirmPwd)) b=true;
        return b;
    }
}
